package com.geotmt.billingcenter.modules.cost.mapper.provider;

import com.geotmt.billingcenter.common.entry.CostRuleHisEntry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description cost ruleHis SQL
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/20 14:08
 * @Version     v1
 **/
public class CostRuleHisProvider {

    private static final Logger logger = LoggerFactory.getLogger(CostRuleHisProvider.class);

    /**
     * Cost add ruleHis
     * @param obj
     * @return
     */
    public String add(CostRuleHisEntry obj){
       StringBuffer sql = new StringBuffer("INSERT INTO `fin_cost_his_conf_rule`")
                .append(" (price,stair_cycle,stair_start_time)")
                .append(" VALUES")
                .append(" (#{price},#{stairCycle},#{stairStartTime})");

       logger.info("cost add ruleHis SQL:{}",sql);
       return sql.toString();
    }
}
